<?php

/**
 * Partner form.
 *
 * @package    billingSystem
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PartnerForm extends BasePartnerForm
{
  public function configure()
  {
     unset ($this['pid']);
      
      unset($this['updated_at'],$this['created_at'],$this['pid'],$this['distype'],$this['disvalue']);
      
      $this->widgetSchema['billfreq'] = new sfWidgetFormChoice(array(
	'choices' => array('daily' => 'daily',
    'weekly' => 'weekly',
    'monthly' => 'monthly',),
	'expanded' => true,
	));
	$this->widgetSchema['invrecfreq'] = new sfWidgetFormChoice(array(
	'choices' => array('daily' => 'daily',
    'weekly' => 'weekly',
    'monthly' => 'monthly',),
	'expanded' => true,
	));

	
	$this->widgetSchema->setLabels(array(
      'pid'=>'Partner ID',
      'fname'    => 'First Name',
      'lname'      => 'Last Name',
      'billfreq'   => 'Billing Frequency',
      'invrecfreq'   => 'Billing Receiving Frequency',
    ));
  }
}
